#include "led.h"

void LED_On(uint16_t led)
{
    HAL_GPIO_WritePin(GPIOB,led,GPIO_PIN_SET);
}

void LED_Off(uint16_t led)
{
    HAL_GPIO_WritePin(GPIOB,led,GPIO_PIN_RESET);
}

void LED_Toggle(uint16_t led)
{
    HAL_GPIO_TogglePin(GPIOB,led);
}

void LED_OnAll(uint16_t leds[],uint8_t size)
{
    for (uint8_t i = 0; i < size; i++)
    {
        LED_On(leds[i]);
    }
    
}

void LED_OffAll(uint16_t leds[],uint8_t size)
{
    for (uint8_t i = 0; i < size; i++)
    {
        LED_Off(leds[i]);
    }
    
}

